import base from '@/api/baseurl';
import request from '@/utils/request'

//仅查询主表信息
export function fetchListTransfercurve(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findtransfercurve',
    method: 'get',
    params: query
  })
}

//查询所有信息----现在在用
export function findtransfercurvetest(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findtransfercurvetest',
    method: 'get',
    params: query
  })
}

//导出
export function findtransfercurvederive(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findtransfercurvederive',
    method: 'get',
    params: query
  })
}


//法人下拉框
export function fetchListuserlp(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findoneTransfercurveuserlp',
    method: 'get',
    params: query
  })
}

//币种下拉框
export function fetchListcurr(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findoneTransfercurvecurr',
    method: 'get',
    params: query
  })
}

//拟合曲线方式下拉框
export function findcurvetypeall(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findcurvetypeall',
    method: 'get',
    params: query
  })
}


//单行删除
export function deleteTransfercurve(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/deletetransfercurve',
    method: 'get',
    params: query
  })
}

//发布
export function releaseTransfercurve(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/releasetransfercurve',
    method: 'get',
    params: query
  })
}//撤销
export function revokeTransfercurve(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/revoketransfercurve',
    method: 'get',
    params: query
  })
}

export function addTransfercurve(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/addtransfercurve',
    method: 'post',
    data
  })
}

export function updateTransfercurve(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/updatetransfercurve',
    method: 'post',
    data
  })
}

export function batchDeleteTransfercurve(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/batchdeletetransfercurve',
    method: 'post',
    data
  })
}
